class BanIpItemBean {
  BanIpItemBean(
      {this.total,
      this.list,
      this.pageNum,
      this.pageSize,
      this.size,
      this.startRow,
      this.endRow,
      this.pages,
      this.prePage,
      this.nextPage,
      this.isFirstPage,
      this.isLastPage,
      this.hasPreviousPage,
      this.hasNextPage,
      this.navigatePages,
      this.navigatepageNums,
      this.navigateFirstPage,
      this.navigateLastPage});

  BanIpItemBean.fromJson(dynamic json) {
    total = json['total'];
    if (json['list'] != null) {
      list = [];
      json['list'].forEach((v) {
        list?.add(BanIpListItem.fromJson(v));
      });
    }
    pageNum = json['pageNum'];
    pageSize = json['pageSize'];
    size = json['size'];
    startRow = json['startRow'];
    endRow = json['endRow'];
    pages = json['pages'];
    prePage = json['prePage'];
    nextPage = json['nextPage'];
    isFirstPage = json['isFirstPage'];
    isLastPage = json['isLastPage'];
    hasPreviousPage = json['hasPreviousPage'];
    hasNextPage = json['hasNextPage'];
    navigatePages = json['navigatePages'];
    navigatepageNums = json['navigatepageNums'] != null
        ? json['navigatepageNums'].cast<num>()
        : [];
    navigateFirstPage = json['navigateFirstPage'];
    navigateLastPage = json['navigateLastPage'];
  }
  num? total;
  List<BanIpListItem>? list;
  num? pageNum;
  num? pageSize;
  num? size;
  num? startRow;
  num? endRow;
  num? pages;
  num? prePage;
  num? nextPage;
  bool? isFirstPage;
  bool? isLastPage;
  bool? hasPreviousPage;
  bool? hasNextPage;
  num? navigatePages;
  List<num>? navigatepageNums;
  num? navigateFirstPage;
  num? navigateLastPage;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['total'] = total;
    if (list != null) {
      map['list'] = list?.map((v) => v.toJson()).toList();
    }
    map['pageNum'] = pageNum;
    map['pageSize'] = pageSize;
    map['size'] = size;
    map['startRow'] = startRow;
    map['endRow'] = endRow;
    map['pages'] = pages;
    map['prePage'] = prePage;
    map['nextPage'] = nextPage;
    map['isFirstPage'] = isFirstPage;
    map['isLastPage'] = isLastPage;
    map['hasPreviousPage'] = hasPreviousPage;
    map['hasNextPage'] = hasNextPage;
    map['navigatePages'] = navigatePages;
    map['navigatepageNums'] = navigatepageNums;
    map['navigateFirstPage'] = navigateFirstPage;
    map['navigateLastPage'] = navigateLastPage;
    return map;
  }
}

class BanIpListItem {
  BanIpListItem({
    this.currentPage,
    this.pageSize,
    this.sip,
    this.dip,
    this.blockedTime,
    this.startDate,
    this.endDate,
    this.serverIty,
    this.content,
    this.queryCondition,
    this.dport,
    this.sport,
  });

  BanIpListItem.fromJson(dynamic json) {
    currentPage = json['currentPage'];
    pageSize = json['pageSize'];
    sip = json['sip'];
    dip = json['dip'];
    blockedTime = json['blockedTime'];
    startDate = json['startDate'];
    endDate = json['endDate'];
    serverIty = json['serverIty'];
    content = json['content'];
    queryCondition = json['queryCondition'];
    dport = json['dport'];
    sport = json['sport'];
    paProtocal = json['paProtocal'];
  }
  num? currentPage;
  num? pageSize;
  String? sip;
  String? dip;
  String? blockedTime;
  dynamic startDate;
  dynamic endDate;
  String? serverIty;
  String? content;
  dynamic queryCondition;
  String? dport;
  String? sport;
  String? paProtocal;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['currentPage'] = currentPage;
    map['pageSize'] = pageSize;
    map['sip'] = sip;
    map['dip'] = dip;
    map['blockedTime'] = blockedTime;
    map['startDate'] = startDate;
    map['endDate'] = endDate;
    map['serverIty'] = serverIty;
    map['content'] = content;
    map['queryCondition'] = queryCondition;
    map['dport'] = dport;
    map['sport'] = sport;
    map['paProtocal'] = paProtocal;
    return map;
  }
}
